#ifndef __SP_MUTEX_H_INCLUDED__
#define __SP_MUTEX_H_INCLUDED__

#ifdef SP_HAVE_WINDOWS
class mutex
{
	public:
		inline mutex()
		{

		}

		inline ~mutex()
		{

		}

		inline void lock()
		{

		}

		inline void unlock()
		{

		}
	private:
};
#else
#include <pthread.h>
class mutex
{
	public:
		inline mutex()
		{
			pthread_mutex_init(&_mutex, NULL);

		}

		inline ~mutex()
		{
			pthread_mutex_destroy(&_mutex);
		}

		inline void lock()
		{
			pthread_mutex_lock(&_mutex);
		}

		inline void unlock()
		{
			pthread_mutex_unlock(&_mutex);

		}
	private:
		pthread_mutex_t _mutex;
};

#endif
#endif
